<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
			<h1> javaScript 事件监听</h1>
			<hr>
			<button id="mybtn"></button>
	</body>
</html>
<script>
	document.getElementById("mybtn").addEventListener("click",myfunciton);
	function myfunciton(){
		alert("hello world");
	}
	
</script>
